package com.jimmy.nonweb.base;

import java.util.List;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "")
public class UserProps {

    private List<User> users;

    public List<User> getUsers() {
        return users;
    }

    public void setUsers(List<User> users) {
        this.users = users;
    }

    public static class User {
        private String name;
        private List<String> roles;

        public String getName() {
            return name;
        }

        public List<String> getRoles() {
            return roles;
        }

        public void setName(String name) {
            this.name = name;
        }

        public void setRoles(List<String> roles) {
            this.roles = roles;
        }
    }
}
